import { post } from "../../utils/request";
interface Response {
    /**
     * @description token
     */
    token: string,
}
/**
 * 用户登陆
 * 
 * @param account 用户账户
 * @param password 用户密码
 */
export default async function login(account: string, password: string) {
    const response = await post<Response>('/api/user/login', { account, password });
    return response;
}